import request from "@/utils/request"

// 查询登录日志列表
export function list(query) {
  return request({
    url: "/monitor/loginLog/page",
    method: "get",
    params: query
  })
}

// 删除登录日志
export function delLoginLog(infoId) {
  return request({
    url: "/monitor/loginLog/" + infoId,
    method: "delete"
  })
}

// 清空登录日志
export function cleanLoginLog() {
  return request({
    url: "/monitor/loginLog/clean",
    method: "delete"
  })
}

// 导出登录日志
export function exportLoginLog(query) {
  return request({
    url: "/monitor/loginLog/export",
    method: "get",
    params: query
  })
}
